import ft from './components/ft.vue';
import index from './components/index.vue';
import search from './components/search.vue'
import speak from './components/speak.vue'
import content from './components/content.vue'
import address from './components/address.vue'
import member from './components/member.vue'
import detail from './components/detail.vue'
import we from './components/we.vue'

let routes = [  
    {path:'/ft',component:ft},
    {path:'/address',component:address},
    {path:'*',redirect:'/index'},
    {
      path:'/index',
      component:index,
    },
    {path:'/search',component:search},
    {path:'/speak',component:speak},
    {path:'/content',component:content},
    {path:'/member',component:member},
    {path:'/detail',component:detail},
    {path:'/detail/:id',component:detail},
    {path:'/we',component:we},
    
    /* {path:'*',redirect:'/home'}//匹配其他任意url */
/*     {
      path:'/user',
      component:user,
      children:[//子路由
        {path:'login',component:login},
        {path:'reg',component:reg}
      ]
    } */
];
export default {
  routes,
  mode:'history'
}

